import 'package:high_help_apps/common/entities/life_help/commodity_info_entity.dart';
import 'package:high_help_apps/common/entities/life_help/commodity_info_request_entity.dart';
import 'package:high_help_apps/common/utils/http.dart';

/// FileName: commodity
/// Author: admin
/// Date: 2021-08-11 11:54
/// Description:

class CommodityAPI {
  /// 分页获取商品信息
  static Future getCommodityList(
        CommodityInfoRequestEntity? params
      ) async {
    var response = await HttpUtil().get(
      '/commodity',
      queryParameters: params?.toJson()
    );
    print(response);
    return CommodityInfoEntity().fromJson(response);
  }
}

